package com.zqh.myfmmall.clients;

import com.zqh.myfmmall.fallback.OrderSaveClientFallback;
import com.zqh.myfmmall.result.Result;
import com.zqh.myfmmall.rowbeans.entity.Orders;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Description :
 * @Author :kono淇杭哒、
 * @Create 2022-02-22 21:03
 */
@FeignClient(value = "order-save",fallbackFactory = OrderSaveClientFallback.class)
public interface OrderSaveClient{
    @PostMapping("order/create")
    Result create(@RequestBody Orders order);
}
